package com.yunxin.core.domain.model.weight;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.math.BigDecimal;
import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.validation.constraints.Max;
import jakarta.validation.constraints.NotNull;
import lombok.Data;

/**
 * 团队/用户权重关系表
 */
@TableName(value ="sys_team_weight_product")
@Data
public class SysTeamWeightProduct implements Serializable {
    /**
     *
     */
    @TableId(type = IdType.AUTO)
    @Schema(hidden = true)
    private Integer id;

    /**
     * 团队id
     */
    @Schema(hidden = true)
    private Long teamId;

    /**
     * 产品id
     */
    @Schema(description = "产品id")
    @NotNull(message = "产品id不能为空")
    private Long productId;

    /**
     * 分发占比
     */
    @Schema(description = "分发占比")
    @NotNull(message = "分发占比不能为空")
    @Max(value = 1,message = "分发占比不能大于1")
    private BigDecimal distribute;


    /**
     * 权重id
     */
    @Schema(description = "权重id",hidden = true)
    private Integer weightId;


}